﻿create PROCEDURE Sync.SP_BoardMembers_SelectChanges
@LastRowVersion rowversion,
@FilterdColumn UNIQUEIDENTIFIER
AS 
BEGIN 
	SELECT 
        t.[BoardMemberID],
		g.[BoardMemberName],
		t.IsDeleted,
		t.LastUpdatedDate
	FROM [dbo].[BoardMembers] g RIGHT JOIN Sync.BoardMembers_Tracking t  
    ON t.BoardMemberID = g.BoardMemberID 
	WHERE @LastRowVersion IS NULL OR t.Version > @LastRowVersion
    END











